package com.study.zouchao.superproject.mypublishtask.model.entity;

import java.util.List;

/**
 *
 * {
 "data": [
 {
 “taskSponsorId’  : 20,
 “sponsorHeadimg” : “https://www.baidu.com/img/bd_logo1.png”,
 “sponsorNickName” : “zouchao”,
 “taskId” : 12,[关键字段 ]
 “sponsorTime” : “2017-06-10 20:06:25”,
 “reward” : “15元一小时”,
 “rewardPrice” : 10,
 “helpContent” : “下午石鼓路有一场宣讲会”,
 “taskStatus” : 1[demo上没有(可选)]
 },
 {
 “taskSponsorId’  : 20,
 “sponsorHeadimg” : “https://www.baidu.com/img/bd_logo1.png”,
 “sponsorNickName” : “zouchao”,
 “taskId” : 12,[关键字段 ]
 “sponsorTime” : “2017-06-10 20:06:25”,
 “reward” : “15元一小时”,
 “rewardPrice” : 10,
 “helpContent” : “下午石鼓路有一场宣讲会”,
 “taskStatus” : 1[demo上没有(可选)]
 },
 {
 “taskSponsorId’  : 20,
 “sponsorHeadimg” : “https://www.baidu.com/img/bd_logo1.png”,
 “sponsorNickName” : “zouchao”,
 “taskId” : 12,[关键字段 ]
 “sponsorTime” : “2017-06-10 20:06:25”,
 “reward” : “15元一小时”,
 “rewardPrice” : 10,
 “helpContent” : “下午石鼓路有一场宣讲会”,
 “taskStatus” : 1[demo上没有(可选)]
 }
 ],
 "currentPage": 1,
 "pageSize": 5,
 "message": "获取任务列表成功",
 "code": 21101
 }
 *
 *
 *
 *
 * Created by Administrator on 2017/6/20.
 */

public class MyPublishTaskListResult {
    private List<TaskItemBean> data;
    private int currentPage;
    private int pageSize;
    private String message;
    private int pageNum;

    private int code;

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public List<TaskItemBean> getData() {
        return data;
    }

    public void setData(List<TaskItemBean> data) {
        this.data = data;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "MyPublishTaskListResult{" +
                "data=" + data +
                ", currentPage=" + currentPage +
                ", pageSize=" + pageSize +
                ", message='" + message + '\'' +
                ", pageNum=" + pageNum +
                ", code=" + code +
                '}';
    }

    public static class TaskItemBean {
        private String taskTitle;
        private int taskId;
        private String sponsorTime;
        private String taskSponsorName;
        private int taskSponsorId;

        private String reward;
        private int rewardPrice;
        private String helpContent;
        private int taskStatus;

        private String updated;

        private List<EnrolledListBean> enrolledList;

        public String getUpdated() {
            return updated;
        }

        public void setUpdated(String updated) {
            this.updated = updated;
        }

        private String releaseDate;

        public String getReleaseDate() {
            return releaseDate;
        }

        public void setReleaseDate(String releaseDate) {
            this.releaseDate = releaseDate;
        }

        public String getTaskTitle() {
            return taskTitle;
        }

        public void setTaskTitle(String taskTitle) {
            this.taskTitle = taskTitle;
        }

        public int getTaskId() {
            return taskId;
        }

        public void setTaskId(int taskId) {
            this.taskId = taskId;
        }

        public String getSponsorTime() {
            return sponsorTime;
        }

        public void setSponsorTime(String sponsorTime) {
            this.sponsorTime = sponsorTime;
        }

        public String getReward() {
            return reward;
        }

        public void setReward(String reward) {
            this.reward = reward;
        }

        public int getRewardPrice() {
            return rewardPrice;
        }

        public void setRewardPrice(int rewardPrice) {
            this.rewardPrice = rewardPrice;
        }

        public String getHelpContent() {
            return helpContent;
        }

        public void setHelpContent(String helpContent) {
            this.helpContent = helpContent;
        }

        public int getTaskStatus() {
            return taskStatus;
        }

        public void setTaskStatus(int taskStatus) {
            this.taskStatus = taskStatus;
        }

        public String getTaskSponsorName() {
            return taskSponsorName;
        }

        public void setTaskSponsorName(String taskSponsorName) {
            this.taskSponsorName = taskSponsorName;
        }

        public int getTaskSponsorId() {
            return taskSponsorId;
        }

        public void setTaskSponsorId(int taskSponsorId) {
            this.taskSponsorId = taskSponsorId;
        }

        public List<EnrolledListBean> getEnrolledList() {
            return enrolledList;
        }

        public void setEnrolledList(List<EnrolledListBean> enrolledList) {
            this.enrolledList = enrolledList;
        }

        @Override
        public String toString() {
            return "TaskItemBean{" +
                    "taskTitle='" + taskTitle + '\'' +
                    ", taskId=" + taskId +
                    ", sponsorTime='" + sponsorTime + '\'' +
                    ", taskSponsorName='" + taskSponsorName + '\'' +
                    ", taskSponsorId=" + taskSponsorId +
                    ", reward='" + reward + '\'' +
                    ", rewardPrice=" + rewardPrice +
                    ", helpContent='" + helpContent + '\'' +
                    ", taskStatus=" + taskStatus +
                    ", updated='" + updated + '\'' +
                    ", enrolledList=" + enrolledList +
                    ", releaseDate='" + releaseDate + '\'' +
                    '}';
        }

        public static class EnrolledListBean {

            /**
             * created : 2017-06-26 00:00:00
             * updated : 2017-06-27 00:00:00
             * userId : 98
             * userName : 25
             * nickName : 25
             * password : 25
             * balance : 0
             * userArea : null
             * sex : null
             * headimg : http://123.207.127.147:8080/super/headimg/3696e9ec61b74e5fb6f1d4728a0fcce5.jpeg
             */

            private String created;
            private String updated;
            private int userId;
            private String userName;
            private String nickName;
            private String password;
            private int balance;
            private Object userArea;
            private Object sex;
            private String headimg;

            public String getCreated() {
                return created;
            }

            public void setCreated(String created) {
                this.created = created;
            }

            public String getUpdated() {
                return updated;
            }

            public void setUpdated(String updated) {
                this.updated = updated;
            }

            public int getUserId() {
                return userId;
            }

            public void setUserId(int userId) {
                this.userId = userId;
            }

            public String getUserName() {
                return userName;
            }

            public void setUserName(String userName) {
                this.userName = userName;
            }

            public String getNickName() {
                return nickName;
            }

            public void setNickName(String nickName) {
                this.nickName = nickName;
            }

            public String getPassword() {
                return password;
            }

            public void setPassword(String password) {
                this.password = password;
            }

            public int getBalance() {
                return balance;
            }

            public void setBalance(int balance) {
                this.balance = balance;
            }

            public Object getUserArea() {
                return userArea;
            }

            public void setUserArea(Object userArea) {
                this.userArea = userArea;
            }

            public Object getSex() {
                return sex;
            }

            public void setSex(Object sex) {
                this.sex = sex;
            }

            public String getHeadimg() {
                return headimg;
            }

            public void setHeadimg(String headimg) {
                this.headimg = headimg;
            }

            @Override
            public String toString() {
                return "EnrolledListBean{" +
                        "created='" + created + '\'' +
                        ", updated='" + updated + '\'' +
                        ", userId=" + userId +
                        ", userName='" + userName + '\'' +
                        ", nickName='" + nickName + '\'' +
                        ", password='" + password + '\'' +
                        ", balance=" + balance +
                        ", userArea=" + userArea +
                        ", sex=" + sex +
                        ", headimg='" + headimg + '\'' +
                        '}';
            }
        }
    }

}
